void main(){
  var person=new Person();
  person.name='Tom';
  person.age=21;
  person();
}

class Person{
  String name;
  int age;
  //call方法可以让当前类的实例person直接当成call方法去调用
  void call(){
    print('Name is $name,Age is $age');
  }
}